<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<script
	src="${requestScope.FPWEB.staticRootPath }/Js/Plugins/Echarts/echarts.min.js"></script>
	
	<div class="wrap">
	<div class="J_Chart_Panel">
		<div class="h_a1" style="clear: both;">
			<span class="title">基本数据－债权转让</span>
			<div class="yjd-tip">
				<div style="width:800px;">
		 1、成交额－债权转让：在指定的时间段内，债权转让成功成交金额</br>
		 2、成交笔数－债权转让：在指定的时间段内，债权转让成交笔数
				</div>
			</div>
		</div>
		<form method="post" id="sumary" autocomplete="off"
			action="${requestScope.FPWEB.rootPath }/transferinfo/summary${requestScope.FPWEB.urlStuff}">
			<div class="search_type cc">
				<label>起始时间：</label> <input type="input" max="${end }"
					min="${start }" name="start" class="input length_1 mr10 J_date"
					value="${start }"> <label>结束时间：</label> <input type="input"
					max="${end }" min="${start }" name="end"
					class="input length_1 mr10 J_date" value="${end }">
				<button id="search" type="button" class="btn length_1">搜索</button>
			</div>
		</form>
		<div class="count cc" id="cbox">
			<div class="c-box">
				<div class="c-box-head">债权转让成交额（元）</div>
				<div class="c-box-con">
					<span name="transfer_price_actual" class="number">0</span> <span>元</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">债权转让成交笔数（笔）</div>
				<div class="c-box-con">
					<span name="transfer_amount_actual" class="number">0</span> <span>笔</span>
				</div>
			</div>
		</div>
	</div>
	<%@include file="/WEB-INF/jsp/businessdata/transfer/transfer_amount.jsp"%>
	<%@include file="/WEB-INF/jsp/businessdata/transfer/transfer_price.jsp"%>
	<script>
		YJD.use('AppAdminCommon');
		YJD.use('AppBICommon');
		var form = $("#sumary");
		$("#search").click(function() {
			addCompareData();
		});
		function addCompareData() {
			$.ajax({
				type : "post",
				url : form.attr("action"),
				data : form.serializeArray(), // 你的formid
				error : function(request) {
					alert("连接失败！");
				},
				success : function(result) {
					if (result.state == 1) {
						$("span[name='transfer_price_actual']").text(
								result.data.transfer_price_actual);
						$("span[name='transfer_amount_actual']").text(
								result.data.transfer_amount_actual);
					}
				}
			});
		}
		addCompareData();



		
	</script>
</div>